Creating Our Own Prototype

const human = {
  mortal: true
};
const socrates = Object.create(human);
socrates.age = 80;
console.log(`Age of socrates: ${socrates.age}`);
console.log(
  `Is human a prototype of socrates: ${human.isPrototypeOf(socrates)}`
);

This will give us the following output,

Age of socrates: 80
Is human a prototype of socrates: true